#include <iostream>
#include <ctime>


int main(){
	std::cout << "inchi e havasar:\n";
	int a = 1;
	int b = 1;
	int c = 1;
	int s = 0;
	int ch = 0;
	int i = 1;
	while( i <= 10 ){
		srand( static_cast<unsigned int>(time(0)) );
		a = 2 + rand() % 8;
		b = 2 + rand() % 8;
		std::cout << a << "*" << b << "=";
		std::cin >> c;
		while(( a * b != c) && ( i <= 10 )){
			++s;
			++i;
			int k = 1 + rand() % 2;
			switch(k){
			case 1:
				std::cout << "sxale!porceq noric.\n";
				break;
			case 2:
				std::cout << "voch!xndrum enq noric porceq.\n";
				break;
			}
			std::cout << a << "*" << b << "=";
			std::cin >> c;
		}
		if( i <= 10 ){
		++ch;
		++i;
		int f = 1 + rand() % 2;
		switch(f){
		case 1:
			std::cout << "shat lave!sharunakeq nuyn dzevov.\n";
			break;
		case 2:
			std::cout << "ayo!hrashali ashxatanq.\n";
			break;
		}
		}
	}
	std::cout << "sxal: " << s << "\n";
	std::cout << "chisht: " << ch << "\n";
	switch(ch){
	case 10:
	case 9:
	case 8:
		std::cout << "Gnahatakan: gerazanc!\n";
		break;
	case 7:
	case 6:
		std::cout << "Gnahatakan: lav!\n";
		break;
	case 1:
	case 2:
		std::cout << "Gnahatakan: anbavarar!\n";
		break;
	default:
		std::cout << "Gnahatakan: bavarar!\n";
		break;
	}
	return 0;
}